package com.richapp.launcher.utils;

public class Constants {

	/**
	 * 局域网内，UDP组播地址和端口号
	 */
	public static final String CONNECTION_UDP_BROADCAST_IP = "224.168.5.120";
	public static final int CONNECTION_UDP_BROADCAST_PORT = 53656;

	/**
	 * 手机与机顶盒TCP通信端口号
	 */
	public static final int CONNECTION_MOBILE_TCP_PORT = 53653;

	/**
	 * 机顶盒端，主机与主机的通信端口号
	 */
	public static final int CONNECTION_BOX_TCP_PORT = 53654;

	/**
	 * 局域网内，机顶盒相互寻找主机消息发送间隔时间
	 * 以秒为单位
	 */
	public static final int BOX_UDP_REMOTE_REQUEST_TIME = 20;

	/**
	 * 机顶盒-机顶盒之间自动绑定
	 */
	public static final boolean BOX_TO_BOX_AUTO_BIND = false;

	/**
	 * 友盟统计，自定义事件名：用户登陆动作
	 */
	public static final String EVENT_USER_LOGIN = "userLogin";


	public static final String BOX_STATUS_ONLINE = "online";
	public static final String BOX_STATUS_OFFLINE = "offline";
	public static final String BOX_SESSION_ATTR_NAME_UID = "uid";
	/**
	 * 主机被其他用户绑定
	 */
	public static final  int BOX_STATUS_ONBIN_BY_ORDER=1;
	/**
	 * 主机已被当前用户解绑
	 */
	public static final  int BOX_STATUS_UNBIN=2;
	/**
	 * 用户未登录
	 */
	public static final  int BOX_STATUS_UNLOGIN=3;
	/**
	 * 登陆参数错误
	 */
	public static final  int BOX_STATUS_LOGIN_EXP=4;
	/**
	 * 登陆此用户被设置拒绝登陆
	 */
	public static final  int BOX_STATUS_UNLOGIN_REFUSE=5;

	public static final String SERVER_BASE_URL = "http://120.26.199.77";

	public static final String ACTION_NOTIFY_MAIN_ACTIVITY ="ACTION_NOTIFY_MAIN_ACTIVITY" ;




}
